
package cn.edu.scau.cmi.hombio.service;

import cn.edu.scau.cmi.hombio.domain.CureTaskCourse;
import cn.edu.scau.cmi.hombio.domain.Customer;
import cn.edu.scau.cmi.hombio.domain.Employee;
import cn.edu.scau.cmi.hombio.domain.Except;
import cn.edu.scau.cmi.hombio.domain.Feed;
import cn.edu.scau.cmi.hombio.domain.FodderTake;
import cn.edu.scau.cmi.hombio.domain.Inspection;
import cn.edu.scau.cmi.hombio.domain.MedicineTake;
import cn.edu.scau.cmi.hombio.domain.Prevention;
import cn.edu.scau.cmi.hombio.domain.Sale;
import cn.edu.scau.cmi.hombio.domain.SaleTaskQuality;
import cn.edu.scau.cmi.hombio.domain.Task;
import cn.edu.scau.cmi.hombio.domain.TaskEmployee;
import cn.edu.scau.cmi.hombio.domain.TaskIntervalCycle;
import cn.edu.scau.cmi.hombio.domain.TaskManage;
import cn.edu.scau.cmi.hombio.domain.TaskPig;
import cn.edu.scau.cmi.hombio.domain.TaskPighouse;
import cn.edu.scau.cmi.hombio.domain.TaskPigsty;
import cn.edu.scau.cmi.hombio.domain.TaskPrevention;
import cn.edu.scau.cmi.hombio.domain.TaskStatusType;
import cn.edu.scau.cmi.hombio.domain.TaskType;
import cn.edu.scau.cmi.hombio.domain.Transfer;

import java.util.List;
import java.util.Set;

import org.junit.Test;

import org.junit.runner.RunWith;

import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.beans.factory.support.DefaultListableBeanFactory;

import org.springframework.context.ApplicationContext;

import org.springframework.mock.web.MockHttpServletRequest;

import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.TestExecutionListeners;

import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import org.springframework.test.context.support.DependencyInjectionTestExecutionListener;
import org.springframework.test.context.support.DirtiesContextTestExecutionListener;

import org.springframework.test.context.transaction.TransactionalTestExecutionListener;

import org.springframework.transaction.annotation.Transactional;

import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.RequestScope;
import org.springframework.web.context.request.ServletRequestAttributes;
import org.springframework.web.context.request.SessionScope;

/**
 * Class to run the service as a JUnit test. Each operation in the service is a separate test.
 *
 */

@RunWith(SpringJUnit4ClassRunner.class)
@TestExecutionListeners({
		DependencyInjectionTestExecutionListener.class,
		DirtiesContextTestExecutionListener.class,
		TransactionalTestExecutionListener.class })
@ContextConfiguration(locations = {
		"file:./resources/pigRs-security-context.xml",
		"file:./resources/pigRs-service-context.xml",
		"file:./resources/pigRs-dao-context.xml",
		"file:./resources/pigRs-web-context.xml" })
@Transactional
public class TaskServiceTest {

	/**
	 * The Spring application context.
	 *
	 */
	@SuppressWarnings("unused")
	private ApplicationContext context;

	/**
	 * The service being tested, injected by Spring.
	 *
	 */
	@Autowired
	protected TaskService service;

	/**
	 * Instantiates a new TaskServiceTest.
	 *
	 */
	public TaskServiceTest() {
		setupRequestContext();
	}

	/**
	 * Operation Unit Test
	 */
	@Test
	public void findTaskByPrimaryKey() {
		// TODO: JUnit - Populate test inputs for operation: findTaskByPrimaryKey 
		Integer id = 0;
		Task response = null;
		response = service.findTaskByPrimaryKey(id);
		// TODO: JUnit - Add assertions to test outputs of operation: findTaskByPrimaryKey
	}

	/**
	 * Operation Unit Test
	* Return all Task entity
	* 
	 */
	@Test
	public void findAllTasks() {
		// TODO: JUnit - Populate test inputs for operation: findAllTasks 
		Integer startResult = 0;
		Integer maxRows = 0;
		List<Task> response = null;
		response = service.findAllTasks(startResult, maxRows);
		// TODO: JUnit - Add assertions to test outputs of operation: findAllTasks
	}

	/**
	 * Operation Unit Test
	* Save an existing TaskEmployee entity
	* 
	 */
	@Test
	public void saveTaskTaskEmployees() {
		// TODO: JUnit - Populate test inputs for operation: saveTaskTaskEmployees 
		Integer id_1 = 0;
		TaskEmployee related_taskemployees = new cn.edu.scau.cmi.hombio.domain.TaskEmployee();
		Task response = null;
		response = service.saveTaskTaskEmployees(id_1, related_taskemployees);
		// TODO: JUnit - Add assertions to test outputs of operation: saveTaskTaskEmployees
	}

	/**
	 * Operation Unit Test
	* Load an existing Task entity
	* 
	 */
	@Test
	public void loadTasks() {
		Set<Task> response = null;
		response = service.loadTasks();
		// TODO: JUnit - Add assertions to test outputs of operation: loadTasks
	}

	/**
	 * Operation Unit Test
	* Delete an existing TaskEmployee entity
	* 
	 */
	@Test
	public void deleteTaskTaskEmployees() {
		// TODO: JUnit - Populate test inputs for operation: deleteTaskTaskEmployees 
		Integer task_id = 0;
		Integer related_taskemployees_id = 0;
		Task response = null;
		response = service.deleteTaskTaskEmployees(task_id, related_taskemployees_id);
		// TODO: JUnit - Add assertions to test outputs of operation: deleteTaskTaskEmployees
	}

	/**
	 * Operation Unit Test
	* Save an existing Sale entity
	* 
	 */
	@Test
	public void saveTaskSales() {
		// TODO: JUnit - Populate test inputs for operation: saveTaskSales 
		Integer id_2 = 0;
		Sale related_sales = new cn.edu.scau.cmi.hombio.domain.Sale();
		Task response = null;
		response = service.saveTaskSales(id_2, related_sales);
		// TODO: JUnit - Add assertions to test outputs of operation: saveTaskSales
	}

	/**
	 * Operation Unit Test
	* Save an existing Except entity
	* 
	 */
	@Test
	public void saveTaskExcepts() {
		// TODO: JUnit - Populate test inputs for operation: saveTaskExcepts 
		Integer id_3 = 0;
		Except related_excepts = new cn.edu.scau.cmi.hombio.domain.Except();
		Task response = null;
		response = service.saveTaskExcepts(id_3, related_excepts);
		// TODO: JUnit - Add assertions to test outputs of operation: saveTaskExcepts
	}

	/**
	 * Operation Unit Test
	* Save an existing Prevention entity
	* 
	 */
	@Test
	public void saveTaskPreventions() {
		// TODO: JUnit - Populate test inputs for operation: saveTaskPreventions 
		Integer id_4 = 0;
		Prevention related_preventions = new cn.edu.scau.cmi.hombio.domain.Prevention();
		Task response = null;
		response = service.saveTaskPreventions(id_4, related_preventions);
		// TODO: JUnit - Add assertions to test outputs of operation: saveTaskPreventions
	}

	/**
	 * Operation Unit Test
	* Delete an existing Feed entity
	* 
	 */
	@Test
	public void deleteTaskFeeds() {
		// TODO: JUnit - Populate test inputs for operation: deleteTaskFeeds 
		Integer task_id_1 = 0;
		Integer related_feeds_id = 0;
		Task response = null;
		response = service.deleteTaskFeeds(task_id_1, related_feeds_id);
		// TODO: JUnit - Add assertions to test outputs of operation: deleteTaskFeeds
	}

	/**
	 * Operation Unit Test
	* Save an existing TaskPrevention entity
	* 
	 */
	@Test
	public void saveTaskTaskPreventions() {
		// TODO: JUnit - Populate test inputs for operation: saveTaskTaskPreventions 
		Integer id_5 = 0;
		TaskPrevention related_taskpreventions = new cn.edu.scau.cmi.hombio.domain.TaskPrevention();
		Task response = null;
		response = service.saveTaskTaskPreventions(id_5, related_taskpreventions);
		// TODO: JUnit - Add assertions to test outputs of operation: saveTaskTaskPreventions
	}

	/**
	 * Operation Unit Test
	* Save an existing CureTaskCourse entity
	* 
	 */
	@Test
	public void saveTaskCureTaskCourses() {
		// TODO: JUnit - Populate test inputs for operation: saveTaskCureTaskCourses 
		Integer id_6 = 0;
		CureTaskCourse related_curetaskcourses = new cn.edu.scau.cmi.hombio.domain.CureTaskCourse();
		Task response = null;
		response = service.saveTaskCureTaskCourses(id_6, related_curetaskcourses);
		// TODO: JUnit - Add assertions to test outputs of operation: saveTaskCureTaskCourses
	}

	/**
	 * Operation Unit Test
	* Delete an existing TaskPrevention entity
	* 
	 */
	@Test
	public void deleteTaskTaskPreventions() {
		// TODO: JUnit - Populate test inputs for operation: deleteTaskTaskPreventions 
		Integer task_id_2 = 0;
		Integer related_taskpreventions_id = 0;
		Task response = null;
		response = service.deleteTaskTaskPreventions(task_id_2, related_taskpreventions_id);
		// TODO: JUnit - Add assertions to test outputs of operation: deleteTaskTaskPreventions
	}

	/**
	 * Operation Unit Test
	* Delete an existing Inspection entity
	* 
	 */
	@Test
	public void deleteTaskInspections() {
		// TODO: JUnit - Populate test inputs for operation: deleteTaskInspections 
		Integer task_id_3 = 0;
		Integer related_inspections_id = 0;
		Task response = null;
		response = service.deleteTaskInspections(task_id_3, related_inspections_id);
		// TODO: JUnit - Add assertions to test outputs of operation: deleteTaskInspections
	}

	/**
	 * Operation Unit Test
	* Delete an existing Employee entity
	* 
	 */
	@Test
	public void deleteTaskEmployee() {
		// TODO: JUnit - Populate test inputs for operation: deleteTaskEmployee 
		Integer task_id_4 = 0;
		Integer related_employee_id = 0;
		Task response = null;
		response = service.deleteTaskEmployee(task_id_4, related_employee_id);
		// TODO: JUnit - Add assertions to test outputs of operation: deleteTaskEmployee
	}

	/**
	 * Operation Unit Test
	* Delete an existing Sale entity
	* 
	 */
	@Test
	public void deleteTaskSales() {
		// TODO: JUnit - Populate test inputs for operation: deleteTaskSales 
		Integer task_id_5 = 0;
		Integer related_sales_id = 0;
		Task response = null;
		response = service.deleteTaskSales(task_id_5, related_sales_id);
		// TODO: JUnit - Add assertions to test outputs of operation: deleteTaskSales
	}

	/**
	 * Operation Unit Test
	* Delete an existing MedicineTake entity
	* 
	 */
	@Test
	public void deleteTaskMedicineTakes() {
		// TODO: JUnit - Populate test inputs for operation: deleteTaskMedicineTakes 
		Integer task_id_6 = 0;
		Integer related_medicinetakes_id = 0;
		Task response = null;
		response = service.deleteTaskMedicineTakes(task_id_6, related_medicinetakes_id);
		// TODO: JUnit - Add assertions to test outputs of operation: deleteTaskMedicineTakes
	}

	/**
	 * Operation Unit Test
	* Save an existing FodderTake entity
	* 
	 */
	@Test
	public void saveTaskFodderTakes() {
		// TODO: JUnit - Populate test inputs for operation: saveTaskFodderTakes 
		Integer id_7 = 0;
		FodderTake related_foddertakes = new cn.edu.scau.cmi.hombio.domain.FodderTake();
		Task response = null;
		response = service.saveTaskFodderTakes(id_7, related_foddertakes);
		// TODO: JUnit - Add assertions to test outputs of operation: saveTaskFodderTakes
	}

	/**
	 * Operation Unit Test
	* Save an existing TaskStatusType entity
	* 
	 */
	@Test
	public void saveTaskTaskStatusType() {
		// TODO: JUnit - Populate test inputs for operation: saveTaskTaskStatusType 
		Integer id_8 = 0;
		TaskStatusType related_taskstatustype = new cn.edu.scau.cmi.hombio.domain.TaskStatusType();
		Task response = null;
		response = service.saveTaskTaskStatusType(id_8, related_taskstatustype);
		// TODO: JUnit - Add assertions to test outputs of operation: saveTaskTaskStatusType
	}

	/**
	 * Operation Unit Test
	* Save an existing TaskType entity
	* 
	 */
	@Test
	public void saveTaskTaskType() {
		// TODO: JUnit - Populate test inputs for operation: saveTaskTaskType 
		Integer id_9 = 0;
		TaskType related_tasktype = new cn.edu.scau.cmi.hombio.domain.TaskType();
		Task response = null;
		response = service.saveTaskTaskType(id_9, related_tasktype);
		// TODO: JUnit - Add assertions to test outputs of operation: saveTaskTaskType
	}

	/**
	 * Operation Unit Test
	* Delete an existing TaskPighouse entity
	* 
	 */
	@Test
	public void deleteTaskTaskPighouses() {
		// TODO: JUnit - Populate test inputs for operation: deleteTaskTaskPighouses 
		Integer task_id_7 = 0;
		Integer related_taskpighouses_id = 0;
		Task response = null;
		response = service.deleteTaskTaskPighouses(task_id_7, related_taskpighouses_id);
		// TODO: JUnit - Add assertions to test outputs of operation: deleteTaskTaskPighouses
	}

	/**
	 * Operation Unit Test
	* Delete an existing Customer entity
	* 
	 */
	@Test
	public void deleteTaskCustomer() {
		// TODO: JUnit - Populate test inputs for operation: deleteTaskCustomer 
		Integer task_id_8 = 0;
		Integer related_customer_id = 0;
		Task response = null;
		response = service.deleteTaskCustomer(task_id_8, related_customer_id);
		// TODO: JUnit - Add assertions to test outputs of operation: deleteTaskCustomer
	}

	/**
	 * Operation Unit Test
	* Delete an existing Transfer entity
	* 
	 */
	@Test
	public void deleteTaskTransfers() {
		// TODO: JUnit - Populate test inputs for operation: deleteTaskTransfers 
		Integer task_id_9 = 0;
		Integer related_transfers_id = 0;
		Task response = null;
		response = service.deleteTaskTransfers(task_id_9, related_transfers_id);
		// TODO: JUnit - Add assertions to test outputs of operation: deleteTaskTransfers
	}

	/**
	 * Operation Unit Test
	* Delete an existing SaleTaskQuality entity
	* 
	 */
	@Test
	public void deleteTaskSaleTaskQualities() {
		// TODO: JUnit - Populate test inputs for operation: deleteTaskSaleTaskQualities 
		Integer task_id_10 = 0;
		Integer related_saletaskqualities_id = 0;
		Task response = null;
		response = service.deleteTaskSaleTaskQualities(task_id_10, related_saletaskqualities_id);
		// TODO: JUnit - Add assertions to test outputs of operation: deleteTaskSaleTaskQualities
	}

	/**
	 * Operation Unit Test
	* Delete an existing TaskPig entity
	* 
	 */
	@Test
	public void deleteTaskTaskPigs() {
		// TODO: JUnit - Populate test inputs for operation: deleteTaskTaskPigs 
		Integer task_id_11 = 0;
		Integer related_taskpigs_id = 0;
		Task response = null;
		response = service.deleteTaskTaskPigs(task_id_11, related_taskpigs_id);
		// TODO: JUnit - Add assertions to test outputs of operation: deleteTaskTaskPigs
	}

	/**
	 * Operation Unit Test
	* Save an existing Inspection entity
	* 
	 */
	@Test
	public void saveTaskInspections() {
		// TODO: JUnit - Populate test inputs for operation: saveTaskInspections 
		Integer id_10 = 0;
		Inspection related_inspections = new cn.edu.scau.cmi.hombio.domain.Inspection();
		Task response = null;
		response = service.saveTaskInspections(id_10, related_inspections);
		// TODO: JUnit - Add assertions to test outputs of operation: saveTaskInspections
	}

	/**
	 * Operation Unit Test
	* Delete an existing TaskPigsty entity
	* 
	 */
	@Test
	public void deleteTaskTaskPigsties() {
		// TODO: JUnit - Populate test inputs for operation: deleteTaskTaskPigsties 
		Integer task_id_12 = 0;
		Integer related_taskpigsties_id = 0;
		Task response = null;
		response = service.deleteTaskTaskPigsties(task_id_12, related_taskpigsties_id);
		// TODO: JUnit - Add assertions to test outputs of operation: deleteTaskTaskPigsties
	}

	/**
	 * Operation Unit Test
	* Save an existing TaskPigsty entity
	* 
	 */
	@Test
	public void saveTaskTaskPigsties() {
		// TODO: JUnit - Populate test inputs for operation: saveTaskTaskPigsties 
		Integer id_11 = 0;
		TaskPigsty related_taskpigsties = new cn.edu.scau.cmi.hombio.domain.TaskPigsty();
		Task response = null;
		response = service.saveTaskTaskPigsties(id_11, related_taskpigsties);
		// TODO: JUnit - Add assertions to test outputs of operation: saveTaskTaskPigsties
	}

	/**
	 * Operation Unit Test
	* Return a count of all Task entity
	* 
	 */
	@Test
	public void countTasks() {
		Integer response = null;
		response = service.countTasks();
		// TODO: JUnit - Add assertions to test outputs of operation: countTasks
	}

	/**
	 * Operation Unit Test
	* Save an existing TaskManage entity
	* 
	 */
	@Test
	public void saveTaskTaskManages() {
		// TODO: JUnit - Populate test inputs for operation: saveTaskTaskManages 
		Integer id_12 = 0;
		TaskManage related_taskmanages = new cn.edu.scau.cmi.hombio.domain.TaskManage();
		Task response = null;
		response = service.saveTaskTaskManages(id_12, related_taskmanages);
		// TODO: JUnit - Add assertions to test outputs of operation: saveTaskTaskManages
	}

	/**
	 * Operation Unit Test
	* Delete an existing Task entity
	* 
	 */
	@Test
	public void deleteTask() {
		// TODO: JUnit - Populate test inputs for operation: deleteTask 
		Task task = new cn.edu.scau.cmi.hombio.domain.Task();
		service.deleteTask(task);
	}

	/**
	 * Operation Unit Test
	* Delete an existing TaskIntervalCycle entity
	* 
	 */
	@Test
	public void deleteTaskTaskIntervalCycles() {
		// TODO: JUnit - Populate test inputs for operation: deleteTaskTaskIntervalCycles 
		Integer task_id_13 = 0;
		Integer related_taskintervalcycles_id = 0;
		Task response = null;
		response = service.deleteTaskTaskIntervalCycles(task_id_13, related_taskintervalcycles_id);
		// TODO: JUnit - Add assertions to test outputs of operation: deleteTaskTaskIntervalCycles
	}

	/**
	 * Operation Unit Test
	* Save an existing Customer entity
	* 
	 */
	@Test
	public void saveTaskCustomer() {
		// TODO: JUnit - Populate test inputs for operation: saveTaskCustomer 
		Integer id_13 = 0;
		Customer related_customer = new cn.edu.scau.cmi.hombio.domain.Customer();
		Task response = null;
		response = service.saveTaskCustomer(id_13, related_customer);
		// TODO: JUnit - Add assertions to test outputs of operation: saveTaskCustomer
	}

	/**
	 * Operation Unit Test
	* Delete an existing CureTaskCourse entity
	* 
	 */
	@Test
	public void deleteTaskCureTaskCourses() {
		// TODO: JUnit - Populate test inputs for operation: deleteTaskCureTaskCourses 
		Integer task_id_14 = 0;
		Integer related_curetaskcourses_id = 0;
		Task response = null;
		response = service.deleteTaskCureTaskCourses(task_id_14, related_curetaskcourses_id);
		// TODO: JUnit - Add assertions to test outputs of operation: deleteTaskCureTaskCourses
	}

	/**
	 * Operation Unit Test
	* Save an existing TaskPighouse entity
	* 
	 */
	@Test
	public void saveTaskTaskPighouses() {
		// TODO: JUnit - Populate test inputs for operation: saveTaskTaskPighouses 
		Integer id_14 = 0;
		TaskPighouse related_taskpighouses = new cn.edu.scau.cmi.hombio.domain.TaskPighouse();
		Task response = null;
		response = service.saveTaskTaskPighouses(id_14, related_taskpighouses);
		// TODO: JUnit - Add assertions to test outputs of operation: saveTaskTaskPighouses
	}

	/**
	 * Operation Unit Test
	* Save an existing Feed entity
	* 
	 */
	@Test
	public void saveTaskFeeds() {
		// TODO: JUnit - Populate test inputs for operation: saveTaskFeeds 
		Integer id_15 = 0;
		Feed related_feeds = new cn.edu.scau.cmi.hombio.domain.Feed();
		Task response = null;
		response = service.saveTaskFeeds(id_15, related_feeds);
		// TODO: JUnit - Add assertions to test outputs of operation: saveTaskFeeds
	}

	/**
	 * Operation Unit Test
	* Delete an existing TaskType entity
	* 
	 */
	@Test
	public void deleteTaskTaskType() {
		// TODO: JUnit - Populate test inputs for operation: deleteTaskTaskType 
		Integer task_id_15 = 0;
		Integer related_tasktype_id = 0;
		Task response = null;
		response = service.deleteTaskTaskType(task_id_15, related_tasktype_id);
		// TODO: JUnit - Add assertions to test outputs of operation: deleteTaskTaskType
	}

	/**
	 * Operation Unit Test
	* Delete an existing FodderTake entity
	* 
	 */
	@Test
	public void deleteTaskFodderTakes() {
		// TODO: JUnit - Populate test inputs for operation: deleteTaskFodderTakes 
		Integer task_id_16 = 0;
		Integer related_foddertakes_id = 0;
		Task response = null;
		response = service.deleteTaskFodderTakes(task_id_16, related_foddertakes_id);
		// TODO: JUnit - Add assertions to test outputs of operation: deleteTaskFodderTakes
	}

	/**
	 * Operation Unit Test
	* Save an existing TaskPig entity
	* 
	 */
	@Test
	public void saveTaskTaskPigs() {
		// TODO: JUnit - Populate test inputs for operation: saveTaskTaskPigs 
		Integer id_16 = 0;
		TaskPig related_taskpigs = new cn.edu.scau.cmi.hombio.domain.TaskPig();
		Task response = null;
		response = service.saveTaskTaskPigs(id_16, related_taskpigs);
		// TODO: JUnit - Add assertions to test outputs of operation: saveTaskTaskPigs
	}

	/**
	 * Operation Unit Test
	* Delete an existing TaskStatusType entity
	* 
	 */
	@Test
	public void deleteTaskTaskStatusType() {
		// TODO: JUnit - Populate test inputs for operation: deleteTaskTaskStatusType 
		Integer task_id_17 = 0;
		Integer related_taskstatustype_id = 0;
		Task response = null;
		response = service.deleteTaskTaskStatusType(task_id_17, related_taskstatustype_id);
		// TODO: JUnit - Add assertions to test outputs of operation: deleteTaskTaskStatusType
	}

	/**
	 * Operation Unit Test
	* Save an existing Transfer entity
	* 
	 */
	@Test
	public void saveTaskTransfers() {
		// TODO: JUnit - Populate test inputs for operation: saveTaskTransfers 
		Integer id_17 = 0;
		Transfer related_transfers = new cn.edu.scau.cmi.hombio.domain.Transfer();
		Task response = null;
		response = service.saveTaskTransfers(id_17, related_transfers);
		// TODO: JUnit - Add assertions to test outputs of operation: saveTaskTransfers
	}

	/**
	 * Operation Unit Test
	* Save an existing SaleTaskQuality entity
	* 
	 */
	@Test
	public void saveTaskSaleTaskQualities() {
		// TODO: JUnit - Populate test inputs for operation: saveTaskSaleTaskQualities 
		Integer id_18 = 0;
		SaleTaskQuality related_saletaskqualities = new cn.edu.scau.cmi.hombio.domain.SaleTaskQuality();
		Task response = null;
		response = service.saveTaskSaleTaskQualities(id_18, related_saletaskqualities);
		// TODO: JUnit - Add assertions to test outputs of operation: saveTaskSaleTaskQualities
	}

	/**
	 * Operation Unit Test
	* Delete an existing Except entity
	* 
	 */
	@Test
	public void deleteTaskExcepts() {
		// TODO: JUnit - Populate test inputs for operation: deleteTaskExcepts 
		Integer task_id_18 = 0;
		Integer related_excepts_id = 0;
		Task response = null;
		response = service.deleteTaskExcepts(task_id_18, related_excepts_id);
		// TODO: JUnit - Add assertions to test outputs of operation: deleteTaskExcepts
	}

	/**
	 * Operation Unit Test
	* Save an existing Task entity
	* 
	 */
	@Test
	public void saveTask() {
		// TODO: JUnit - Populate test inputs for operation: saveTask 
		Task task_1 = new cn.edu.scau.cmi.hombio.domain.Task();
		service.saveTask(task_1);
	}

	/**
	 * Operation Unit Test
	* Delete an existing TaskManage entity
	* 
	 */
	@Test
	public void deleteTaskTaskManages() {
		// TODO: JUnit - Populate test inputs for operation: deleteTaskTaskManages 
		Integer task_id_19 = 0;
		Integer related_taskmanages_id = 0;
		Task response = null;
		response = service.deleteTaskTaskManages(task_id_19, related_taskmanages_id);
		// TODO: JUnit - Add assertions to test outputs of operation: deleteTaskTaskManages
	}

	/**
	 * Operation Unit Test
	* Save an existing Employee entity
	* 
	 */
	@Test
	public void saveTaskEmployee() {
		// TODO: JUnit - Populate test inputs for operation: saveTaskEmployee 
		Integer id_19 = 0;
		Employee related_employee = new cn.edu.scau.cmi.hombio.domain.Employee();
		Task response = null;
		response = service.saveTaskEmployee(id_19, related_employee);
		// TODO: JUnit - Add assertions to test outputs of operation: saveTaskEmployee
	}

	/**
	 * Operation Unit Test
	* Save an existing MedicineTake entity
	* 
	 */
	@Test
	public void saveTaskMedicineTakes() {
		// TODO: JUnit - Populate test inputs for operation: saveTaskMedicineTakes 
		Integer id_20 = 0;
		MedicineTake related_medicinetakes = new cn.edu.scau.cmi.hombio.domain.MedicineTake();
		Task response = null;
		response = service.saveTaskMedicineTakes(id_20, related_medicinetakes);
		// TODO: JUnit - Add assertions to test outputs of operation: saveTaskMedicineTakes
	}

	/**
	 * Operation Unit Test
	* Save an existing TaskIntervalCycle entity
	* 
	 */
	@Test
	public void saveTaskTaskIntervalCycles() {
		// TODO: JUnit - Populate test inputs for operation: saveTaskTaskIntervalCycles 
		Integer id_21 = 0;
		TaskIntervalCycle related_taskintervalcycles = new cn.edu.scau.cmi.hombio.domain.TaskIntervalCycle();
		Task response = null;
		response = service.saveTaskTaskIntervalCycles(id_21, related_taskintervalcycles);
		// TODO: JUnit - Add assertions to test outputs of operation: saveTaskTaskIntervalCycles
	}

	/**
	 * Operation Unit Test
	* Delete an existing Prevention entity
	* 
	 */
	@Test
	public void deleteTaskPreventions() {
		// TODO: JUnit - Populate test inputs for operation: deleteTaskPreventions 
		Integer task_id_20 = 0;
		Integer related_preventions_id = 0;
		Task response = null;
		response = service.deleteTaskPreventions(task_id_20, related_preventions_id);
		// TODO: JUnit - Add assertions to test outputs of operation: deleteTaskPreventions
	}

	/**
	 * Autowired to set the Spring application context.
	 *
	 */
	@Autowired
	public void setContext(ApplicationContext context) {
		this.context = context;
		((DefaultListableBeanFactory) context.getAutowireCapableBeanFactory()).registerScope("session", new SessionScope());
		((DefaultListableBeanFactory) context.getAutowireCapableBeanFactory()).registerScope("request", new RequestScope());
	}

	/**
	 * Sets Up the Request context
	 *
	 */
	private void setupRequestContext() {
		MockHttpServletRequest request = new MockHttpServletRequest();
		ServletRequestAttributes attributes = new ServletRequestAttributes(request);
		RequestContextHolder.setRequestAttributes(attributes);
	}
}
